let intent = $engines.myEngine().execArgv.intent;
if (!intent) {
    console.log("非监听启动");
    exit();
}

requestScreenCapture();

if (!device.isScreenOn()) {
    device.keepScreenOn(5 * 1000);
    sleep(500);
    swipe(600, 900, 100, 900, 320);
    sleep(500);
}

captureScreen('/sdcard/脚本/zddaka/截图/wxdk.jpg');